<template>
    <div @click="handleClick">
        <img :src="editElement.img" >
    </div>
</template>

<script setup lang='ts'>
import { type EditElement, useEditElementStore } from '@/store/edit/editElement';

interface props {
    editElement: EditElement
}

const props = defineProps<props>()

const { setCurrentSelectedEditElement } = useEditElementStore()

const handleClick = () => {
    setCurrentSelectedEditElement(props.editElement)
}

</script>

